翻訳と辞書
Words near each other
・ Pareora River
・ Parent (surname)
・ Parent Airport
・ Parent and child
・ Parent body
・ Parent bug
・ Parent company
・ Parent company guarantee
・ Parent education program
・ Parent Effectiveness Training
・ Parent function
・ Parent General Behavior Inventory
・ Parent hydride
・ Parent management training
・ Parent material
Parent pointer tree
・ Parent process
・ Parent railway station
・ Parent Rescue
・ Parent rock
・ Parent show
・ Parent structure
・ Parent Teacher Organization
・ Parent to Parent of New York State
・ Parent trigger
・ Parent Water Aerodrome
・ Parent, Minnesota
・ Parent, Puy-de-Dôme
・ Parent, Quebec
・ Parent-Child Interaction Assessment-II


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Parent pointer tree : ウィキペディア英語版
Parent pointer tree

In computer science, an in-tree or parent pointer tree is an -ary tree data structure in which each node has a pointer to its parent node, but no pointers to child nodes. When used to implement a set of stacks, the structure is called a spaghetti stack, cactus stack or saguaro stack (after the saguaro, a kind of cactus). Parent pointer trees are also used as disjoint-set data structures.
The structure can be regarded as a set of singly linked lists that share part of their structure, in particular, their tails. From any node, one can traverse to ancestors of the node, but not to any other node.
==Use in compilers==
A compiler for a language such as C creates a spaghetti stack as it opens and closes symbol tables representing block scopes. When a new block scope is opened, a symbol table is pushed onto a stack. When the closing curly brace is encountered, the scope is closed and the symbol table is popped. But that symbol table is remembered, rather than destroyed. And of course it remembers its higher level "parent" symbol table and so on. Thus when the compiler is later performing translations over the abstract syntax tree, for any given expression, it can fetch the symbol table representing that expression's environment and can resolve references to identifiers. If the expression refers to a variable X, it is first sought after in the leaf symbol table representing the inner-most lexical scope, then in the parent and so on.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Parent pointer tree」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.